﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Booky.DataStorage
{
    [Serializable]
    public class Bookmark
    {
        public ObjectId Id { get; set; }
        public ObjectId User { get; set; } //User ObjectId
        public string Title { get; set; }
        public string Description { get; set; }
        public string Url { get; set; }        
        public bool IsPrivate { get; set; }
        public bool IsCurrentlyReading { get; set; }
        public List<ObjectId> TagObjectIds { get; set; }
        public List<ObjectId> ListObjectIds { get; set; }  
        public string DtCreatedOn { get; set; }
        [BsonDateTimeOptions(Kind = DateTimeKind.Utc)]
        public DateTime CreatedOn { get; set; }                
        public List<Tag> Tags { get; set; }
        public List<List> Lists { get; set; }
        //public List<BookmarkComment> Comments { get; set; }
        public int UpVote { get; set; }
        public int DownVote { get; set; }
        public bool IsOriginal { get; set; }
        public int PCount { get; set; }
    }
}
